<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
    <script type="text/javascript">
      const _isPalindrome = (string) => {
        // 补全代码
        // let oldstring = string.split('').join('')
        let newstring = string.split('').reverse().join('')
        if (string == newstring) {
          return true
        } else {
          return false
        }
      }
      console.log(_isPalindrome('level123'))
    </script>
  </body>
</html>
